.class Lframent/FramentMerchant$3;
.super Ljava/lang/Thread;
.source "FramentMerchant.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lframent/FramentMerchant;->getShopSource1()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lframent/FramentMerchant;


# direct methods
.method constructor <init>(Lframent/FramentMerchant;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    .line 325
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 14

    .prologue
    const/4 v13, 0x2

    .line 327
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 329
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 331
    .local v5, "msg":Landroid/os/Message;
    new-instance v10, Ljava/lang/StringBuilder;

    iget-object v11, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v11, v11, Lframent/FramentMerchant;->m:Lmyapp/MyApp;

    invoke-virtual {v11}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 332
    const-string v11, "/index.php?ctrl=app&action=newshopinfo&shopid="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v11, v11, Lframent/FramentMerchant;->shopid:Ljava/lang/String;

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&lat="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v11, v11, Lframent/FramentMerchant;->m:Lmyapp/MyApp;

    invoke-virtual {v11}, Lmyapp/MyApp;->getLat()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&lng="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v11, v11, Lframent/FramentMerchant;->m:Lmyapp/MyApp;

    invoke-virtual {v11}, Lmyapp/MyApp;->getLng()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&ios=marketos&datatype=json"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    .line 331
    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 334
    .local v9, "url":Ljava/lang/String;
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->m:Lmyapp/MyApp;

    invoke-static {v9, v10}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v8

    .line 335
    .local v8, "str":Ljava/lang/String;
    const-string v10, "str----------------"

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 339
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v8}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 341
    .local v3, "json":Lorg/json/JSONObject;
    const-string v10, "error"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, "true"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_0

    .line 343
    const-string v10, "msg"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    iput-object v10, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 344
    const/4 v10, 0x1

    iput v10, v5, Landroid/os/Message;->arg1:I

    .line 345
    sget-object v10, Lframent/FramentMerchant;->h:Landroid/os/Handler;

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 401
    .end local v3    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 348
    .restart local v3    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v10, "msg"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 350
    const/4 v10, 0x2

    iput v10, v5, Landroid/os/Message;->arg1:I

    .line 351
    sget-object v10, Lframent/FramentMerchant;->h:Landroid/os/Handler;

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 393
    .end local v3    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 395
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 398
    iput v13, v5, Landroid/os/Message;->arg1:I

    .line 399
    sget-object v10, Lframent/FramentMerchant;->h:Landroid/os/Handler;

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 354
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v3    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v10, "msg"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v6

    .line 355
    .local v6, "obj":Lorg/json/JSONObject;
    const-string v10, "shopinfo"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v7

    .line 356
    .local v7, "shopinfo":Lorg/json/JSONObject;
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    new-instance v11, Lbean/ShopBean;

    invoke-direct {v11}, Lbean/ShopBean;-><init>()V

    iput-object v11, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    .line 357
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    const-string v11, "shopimg"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lbean/ShopBean;->setShopImg(Ljava/lang/String;)V

    .line 358
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    const-string v11, "shopname"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lbean/ShopBean;->setShopName(Ljava/lang/String;)V

    .line 359
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    const-string v11, "point"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lbean/ShopBean;->setPoint(Ljava/lang/String;)V

    .line 360
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    const-string v11, "limitcost"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lbean/ShopBean;->setLimitCost(Ljava/lang/String;)V

    .line 361
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    const-string v11, "baidupscost"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lbean/ShopBean;->setpscost(Ljava/lang/String;)V

    .line 362
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    const-string v11, "address"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lbean/ShopBean;->setaddress(Ljava/lang/String;)V

    .line 363
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    const-string v11, "starttime"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lbean/ShopBean;->setstarttime(Ljava/lang/String;)V

    .line 364
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->sb:Lbean/ShopBean;

    const-string v11, "notice_info"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lbean/ShopBean;->setNotic(Ljava/lang/String;)V

    .line 366
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    const-string v11, "shopname"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Lframent/FramentMerchant;->access$13(Lframent/FramentMerchant;Ljava/lang/String;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 369
    :try_start_2
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    const-string v11, "intr_info"

    invoke-virtual {v7, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Lframent/FramentMerchant;->access$14(Lframent/FramentMerchant;Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0

    .line 375
    :goto_1
    :try_start_3
    const-string v10, "cx"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v10

    if-nez v10, :cond_2

    .line 378
    const-string v10, "cx"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    .line 379
    .local v2, "ja":Lorg/json/JSONArray;
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    new-instance v11, Ljava/util/ArrayList;

    invoke-direct {v11}, Ljava/util/ArrayList;-><init>()V

    iput-object v11, v10, Lframent/FramentMerchant;->listcx:Ljava/util/List;

    .line 381
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_2
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v10

    if-lt v1, v10, :cond_3

    .line 389
    .end local v1    # "i":I
    .end local v2    # "ja":Lorg/json/JSONArray;
    :cond_2
    iput-object v8, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 391
    const/4 v10, 0x4

    iput v10, v5, Landroid/os/Message;->arg1:I

    .line 392
    sget-object v10, Lframent/FramentMerchant;->h:Landroid/os/Handler;

    invoke-virtual {v10, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 382
    .restart local v1    # "i":I
    .restart local v2    # "ja":Lorg/json/JSONArray;
    :cond_3
    new-instance v4, Ljava/util/HashMap;

    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    .line 383
    .local v4, "mapcx":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v10, "name"

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "name"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v4, v10, v11}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 384
    const-string v10, "logo"

    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "logo"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v4, v10, v11}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 385
    iget-object v10, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v10, v10, Lframent/FramentMerchant;->listcx:Ljava/util/List;

    invoke-interface {v10, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 386
    const-string v10, "listcx----------------------------------"

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v12, p0, Lframent/FramentMerchant$3;->this$0:Lframent/FramentMerchant;

    iget-object v12, v12, Lframent/FramentMerchant;->listcx:Ljava/util/List;

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_0

    .line 381
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 370
    .end local v1    # "i":I
    .end local v2    # "ja":Lorg/json/JSONArray;
    .end local v4    # "mapcx":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :catch_1
    move-exception v10

    goto :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 404
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 405
    monitor-exit p0

    return-void

    .line 404
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
